package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 销售订单
 * </p>
 *
 * @author chenxuebin
 * @since 2018-11-26
 */
@TableName("t_salesorder")
public class Salesorder extends Model<Salesorder> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long khid;
    /**
     * 客户
     */
	private String khname;
    /**
     * 订单状态@1：发现机会；2：确认机会：3方案/报价；4：谈判；5：谈判审核；6：结单；7：无效
     */
	private Integer status;
	private Long gid;
    /**
     * 产品
     */
	private String gname;
    /**
     * 计划金额
     */
	private BigDecimal jhmoney;
    /**
     * 成交金额
     */
	private BigDecimal okmoney;
    /**
     * 结算日期
     */
	private Date okdate;
    /**
     * 产品说明
     */
	private String gnote;
    /**
     * 备注
     */
	private String info;
	private Long uid;
	private int state;
	private Long mid;
	private Long mpid;
	private Long modifier;
	private Date createtime;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getKhid() {
		return khid;
	}

	public void setKhid(Long khid) {
		this.khid = khid;
	}

	public String getKhname() {
		return khname;
	}

	public void setKhname(String khname) {
		this.khname = khname;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public BigDecimal getJhmoney() {
		return jhmoney;
	}

	public void setJhmoney(BigDecimal jhmoney) {
		this.jhmoney = jhmoney;
	}

	public BigDecimal getOkmoney() {
		return okmoney;
	}

	public void setOkmoney(BigDecimal okmoney) {
		this.okmoney = okmoney;
	}

	public Date getOkdate() {
		return okdate;
	}

	public void setOkdate(Date okdate) {
		this.okdate = okdate;
	}

	public String getGnote() {
		return gnote;
	}

	public void setGnote(String gnote) {
		this.gnote = gnote;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Salesorder{" +
			"id=" + id +
			", khid=" + khid +
			", khname=" + khname +
			", status=" + status +
			", gid=" + gid +
			", gname=" + gname +
			", jhmoney=" + jhmoney +
			", okmoney=" + okmoney +
			", okdate=" + okdate +
			", gnote=" + gnote +
			", info=" + info +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
